//
//  DZQCell.m
//  AnnCar_user
//
//  Created by LiBenCan on 17/10/27.
//  Copyright © 2017年 LiBenCan. All rights reserved.
//

#import "DZQCell.h"

@implementation DZQCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])
    {
        self.backgroundColor = backColor;
        self.selectionStyle = 0;
    }
    return self;
}

- (void)loadCell
{
    
    //背景图片
    _backImageV = [TomamaUI createImageView:CGRectMake(10*screenW_6, 0*screenW_6,SCREENW-20*screenW_6,100*screenW_6) backGroundImageV:@"Order_Quan1"];
    [self.contentView addSubview:_backImageV];
    
    //免费券
    _bigLab = [TomamaUI createLabel:CGRectMake(10*screenW_6,20*screenW_6, (SCREENW-20*screenW_6)*0.33, 30*screenW_6) textAligment:1 font:[UIFont systemFontOfSize:20*screenW_6] textColor:[UIColor whiteColor] text:@"免费券"];
    [_backImageV addSubview:_bigLab];
    
    //种类
    _kindLab = [TomamaUI createLabel:CGRectMake(10*screenW_6,50*screenW_6, (SCREENW-20*screenW_6)*0.33, 35*screenW_6) textAligment:1 font:[UIFont systemFontOfSize:12*screenW_6] textColor:[UIColor whiteColor] text:@"外洗"];
    [_backImageV addSubview:_kindLab];
    
    
    //范围
    _rangeLab = [TomamaUI createLabel:CGRectMake((SCREENW-20*screenW_6)*0.43,30*screenW_6, (SCREENW-20*screenW_6)*0.56,20*screenW_6) textAligment:0 font:[UIFont systemFontOfSize:12*screenW_6] textColor:[UIColor whiteColor] text:@"使用范围:仅限在安安体验中心使用"];
    [_backImageV addSubview:_rangeLab];
    
    //种类
    _timeLab = [TomamaUI createLabel:CGRectMake((SCREENW-20*screenW_6)*0.43,55*screenW_6, (SCREENW-20*screenW_6)*0.56,16*screenW_6) textAligment:0 font:[UIFont systemFontOfSize:12*screenW_6] textColor:[UIColor whiteColor] text:@"到期时间：2017—10-26"];
    [_backImageV addSubview:_timeLab];
    


}


@end
